package com.cz.video.website.domain;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cz.video.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 收藏表
 * </p>
 *
 * @author yr
 * @since 2023-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("website_collect")
@Schema(description="收藏表")
public class WebsiteCollect extends BaseEntity implements Serializable{

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "collect_id")
    private Long collectId;

    @Schema(description = "用户id")
    private Long userId;

    @Schema( description = "视频id")
    private Long targetId;

    @Schema( description = "状态")
    private String status;

    @TableLogic
    @Schema( description = "删除标志")
    private Integer delFlag;

    @Schema(description = "管理的收藏夹")
    private Long collectFolderId;
}
